package com.zhong.gang.applib.utils.permission;

import android.app.Activity;

import androidx.fragment.app.Fragment;

import com.yanzhenjie.permission.Permission;
import com.yanzhenjie.permission.PermissionListener;

/**
 * 获取录音权限
 * */
public  class PermissionRecordAudio extends PermissionBase {
    public static final   int PERMISSION_CODE=1005;
    public PermissionRecordAudio(Activity activity, PermissionListener permissionListener){
        super(activity,permissionListener);
    }
    public PermissionRecordAudio(Fragment fragment, PermissionListener permissionListener){
        super(fragment,permissionListener);
    }
    public  String[] getPermissions(){
        return Permission.MICROPHONE;
    }

    @Override
    public int getPermissCode() {
        return PERMISSION_CODE;
    }

}
